<div class="bdlccc bdrccc gadiend-white">
    <div class="pt4 pb4 pl4 pr4">
        <h4 class="pl8 pt7 pb8 pr8 ovfh mt0 mb0 mr0 ml0 bdbccc">
            Order Information
        </h4>
        <div class="pl8 pr8 pt8 pb8 mt0 mb0 ml0 mr0 ovfa">
            {{if isset($Data["OBJ"])}}
                <div class="pt4 pb4 pl4 pr4">
                    <table class="classic-table">
                        <tr>
                            <td class="pr32">Order ID</td>
                            <td>{{$Data["OBJ"][0]->ID}}</td>
                            <td class="pl60 pr32">Customer ID</td>
                            <td>{{$Data["OBJ"][0]->CustomerID}}</td>
                        </tr>
                        <tr>
                            <td class="pr32">Order Date</td>
                            <td>{{$Data["OBJ"][0]->OrderDate}}</td>
                            <td class="pl60 pr32">Customer Name</td>
                            <td>{{$Data["OBJ"][0]->CustomerName}}</td>
                        </tr>
                        <tr>
                            <td class="pr32">Shipped Date</td>
                            <td>{{$Data["OBJ"][0]->ShippedDate}}</td>
                            <td class="pl60 pr32">Cash</td>
                            <td>{{$Data["OBJ"][0]->Monney}}</td>
                        </tr>
                        <tr>
                            <td class="pr32">Ship Name</td>
                            <td>{{$Data["OBJ"][0]->ShipName}}</td>
                            <td class="pl60 pr32">Payment Type</td>
                            <td>{{$Data["OBJ"][0]->Paypal}}</td>
                        </tr>
                        <tr>
                            <td class="pr32">Ship Email</td>
                            <td>{{$Data["OBJ"][0]->ShipEmail}}</td>
                            <td class="pl60 pr32">Status</td>
                            <td>{{$Data["OBJ"][0]->Status}}</td>
                        </tr>
                        <tr>
                            <td class="pr32">Ship Phone</td>
                            <td>{{$Data["OBJ"][0]->ShipPhone}}</td>
                            <td class="pl60 pr32"></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="pr32">Ship Note</td>
                            <td colspan="3">{{$Data["OBJ"][0]->ShipNote}}</td>
                            
                        </tr>
<!--                        <tr>
                            <td class="pr32">Ship Region</td>
                            <td>{{$Data["OBJ"][0]->ShipRegion}}</td>
                            <td class="pl60 pr32"></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="pr32">Ship Postal Code</td>
                            <td>{{$Data["OBJ"][0]->ShipPostalCode}}</td>
                            <td class="pl60 pr32"></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td class="pr32">Ship Country</td>
                            <td>{{$Data["OBJ"][0]->ShipCountry}}</td>
                            <td class="pl60 pr32"></td>
                            <td></td>
                        </tr>-->
                    </table>

                </div>
                <div class="pt4 pb4 pl4 pr4 mt12">
                    <table class="classic-table">
                        <tr>
                            <th>ProductID</th>
                            <th>ProductName</th>
                            <th>PackageID</th>
                            <th>PackageName</th>
                            <th>UnitPrice</th>
                            <th>Quantity</th>
                            <th>Discount</th>
                            <th>Cash</th>
                        </tr>
                        {{foreach $Data["OBJ"] as $o}}
                            <tr>
                                <td>{{$o->ProductID}}</td>
                                <td>{{$o->ProductName}}</td>
                                <td>{{$o->PackageID}}</td>
                                <td>{{$o->PackageName}}</td>
                                <td>{{$o->UnitPrice}}</td>
                                <td>{{$o->Quantity}}</td>
                                <td>{{$o->Discount}}</td>
                                <td>{{$o->UnitPrice * $o->Quantity * (100 - $o->Discount) / 100}}</td>
                            </tr>
                        {{/foreach}}
                    </table>
                </div>
            {{else}}
                No data to display.
            {{/if}}
            <style type="text/css">
                table.classic-table{display:  inline-block;border-collapse: collapse;}
                table.classic-table th,table.classic-table td{border: 1px solid #d7d7d7;display: table-cell; padding: 4px 8px}
                table.classic-table tr{display: table-row}
            </style>


        </div>
        <div class="clear"></div>
    </div>
</div>